﻿using System;

namespace JT808.Gateway.Abstractions
{
    /// <summary>
    /// 终端回复作为响应发布
    /// </summary>
    public interface IJT808ApiResponseProducer : IJT808PubSub, IDisposable
    {
        /// <summary>
        /// 发布终端响应到消息中间件
        /// </summary>
        /// <param name="subscribeId">为请求分配的订阅id</param>
        /// <param name="response">json格式的响应，会被序列化为byte[]后发布</param>
        void ProduceAsync(string subscribeId, byte[] response);
    }
}
